package com.h117121.fashionshop.core.dom;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

@SuppressWarnings("serial")
@Entity
@Table(name = "ProductInInvoice")
public class ProductInInvoice extends BaseDom {
	@Column(name = "ProductId", nullable = false)
	private long productId;

	@Column(name = "Name", length = 250, nullable = false)
	private String name;

	@Column(name = "Quantity", nullable = false)
	private int quantity;

	@Column(name = "Price", nullable = false)
	private long price;

	public int getQuantity() {
		return quantity;
	}

	public void setQuantity(int quantity) {
		this.quantity = quantity;
	}

	public long getPrice() {
		return price;
	}

	public void setPrice(long price) {
		this.price = price;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public long getProductId() {
		return productId;
	}

	public void setProductId(long productId) {
		this.productId = productId;
	}
}
